package com.thinkwide.data.core;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class MFMath {
    public static BigDecimal getScaleWan(BigDecimal data, int Scale) {
        data = data.divide(new BigDecimal(10000), Scale, RoundingMode.HALF_DOWN);
        return data;
    }

    public static boolean isOdd(int i) {
        return (i & 1) != 0;
    }
}
